//
//  HomeTableViewController.swift
//  Sina(微博)
//
//  Created by mac on 15/12/12.
//  Copyright © 2015年 mac. All rights reserved.
//

import UIKit
import AFNetworking
import SVProgressHUD

class HomeTableViewController: BaseTableViewController {
    
    override func viewDidLoad() {
        super.viewDidLoad()
        
        visitorLoginView?.setupInfo("登录后，别人评论你的微博，发给你的消息，都会在这里收到通知", imageName: nil)
        demo()
    }
    func demo(){
        let AFN = AFHTTPSessionManager()
        let urlString = "http://www.weather.com.cn/data/sk/101010100.html"
        AFN.responseSerializer.acceptableContentTypes?.insert("text/html")
        
        SVProgressHUD.show()
        AFN.GET(urlString, parameters: nil, progress: { (p) -> Void in
            
            }, success: { (task, result) -> Void in
                SVProgressHUD.dismiss()
            }) { (task, error) -> Void in
                
        }
        
           }
    
}
